public class TestString {
    public static void main(String[] args) {
        //每个Unicode码占16个二进制位
        String s1 = new String("hello,java");
        System.out.println("s1的长度是： "+s1.length());
        String s2 = new String("你好");
        System.out.println("s2的长度是： "+s2.length());
        System.out.println(s2.indexOf('你'));
        System.out.println(s2.indexOf('好'));
    }
}
